home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1476 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news.uni-c.dk!news
  2. From: Peter Juhl <etiaseti@inet.uni-c.dk>
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: type checking in C++ was Re: Hungarian notation
  5. Date: 11 Jan 1996 07:22:02 GMT
  6. Organization: ETI A/S
  7. Message-ID: <4d2dqq$4lq@news.uni-c.dk>
  8. References: <4cf8hf$8fe@hopi.gate.net> <DKoBrn.CHs@falcon.daytonoh.attgis.com> <4d1j37$ge8@stc06.ctd.ornl.gov>
  9. NNTP-Posting-Host: arhppp35.uni-c.dk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. mbk@jt3ws1.etd.ornl.gov (Kennel) wrote:
  16. >Dick Menninger (Dick.Menninger@DaytonOH.ATTGIS.COM) wrote:
  17. >> Imbedding type information in a name had some utility
  18. >> in the older C environments with the weak type checking
  19.  
  20. >
  21. >At one point something like this could be a problem.  It it still?
  22. >
  23. >function(Type *p) {
  24. >
  25. >// One of this may silently crash or do bad things.  Both typecheck. 
  26. >
  27. >//    delete p;
  28. >//    delete [] p; 
  29. >
  30. >}
  31. >
  32.  
  33. This has not been a problem for years, delete p , is the way 
  34. things work.
  35.  
  36. --- peter
  37.  
  38. Peter Juhl         etiaseti@inet.uni-c.dk
  39.  
  40.  
  41.